<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<TITLE>TrackingForm</TITLE>
<META name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"><META name="CODE_LANGUAGE" Content="C#"><META name="vs_defaultClientScript" content="JavaScript"><META name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<LINK rel="stylesheet" type="text/css" href="/CSS/Outlook.css">
<STYLE>
cool\:tip{behavior: url(/Include/HTC/cooltip_js.htc)}
.cell {BORDER:1 black solid;background-color:white;width:100%;padding:1px}
</STYLE>
</HEAD>



<BODY MS_POSITIONING="GridLayout">
<SELECT onchange="alert(this.value)"><OPTION>Dimok</OPTION><OPTION>Dimon</OPTION></SELECT>
<TABLE datasrc="#xml">
	<TR>
		<TD><INPUT type="checkbox" id="chk" NAME="chk" onclick="sum()"></TD>
		<TD><INPUT datafld="Number" onchange="input(this)"></TD>
	</TR>
	<TFOOT>
		<TR><TD>Total:</TD><TD id="tdTotal"></TD></TR>
	</TFOOT>
</TABLE>
<XML id="xml"><RSS><RS Number="" /></RSS></XML>
</BODY>
</HTML>
<SCRIPT language="javascript">
function input(txt){
	if( txt.parentElement.parentElement.rowIndex == (xml.recordset.RecordCount-1) )
		xml.recordset.AddNew("Number","");
	sum();
}
function sum(){
	for( var s=0,i=0; i < chk.length; i++ )
		if( chk[i].checked )s += parseFloat(chk[i].parentElement.parentElement.children[1].firstChild.value);
	tdTotal.innerHTML = s;
}
</SCRIPT>
